const productwebService = require('../../services/web/productwebService')
const productwebController={
    GetAllProduct:async (req,res)=>{
        const result= await productwebService.GetAllProduct()
        if(result.code===400){
         res.send({
             code:400,
             err:result.err,
             msg:'获取产品失败'
         })
     }
     else 
     res.send({
             code:200,
             result:result,
             msg:'获取产品成功',
             
         })
    }
}
module.exports = productwebController